﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shop.Core.Domain.Customers
{
    public class CustomerFactory
    {
        public static Customer CreateCustomer(string email, string nickName, string password)
        {
            Customer customer = new Customer();
            customer.Email = email;
            customer.NickName = nickName;
            customer.Password = password;
            customer.IsGuest = false;
            customer.CreatedOn = DateTime.UtcNow;
            customer.LastLoginOn = DateTime.UtcNow;
            return customer;
        }

        public static Customer CreateGuestCustomer()
        {
            Customer customer = new Customer();
            customer.NickName = Guid.NewGuid().ToString("N");
            customer.IsGuest = true;
            return customer;
        }
    }
}
